<template>
  <div v-if="isLoading" class="flex flex-row justify-center py-[5px]">
    <Loading type="spinner" class="#1989fa">正在玩命加载······</Loading>
  </div>
  <slot v-else></slot>
</template>

<script>
import {Loading} from "vant";

export default {
  name: "MyLoading",
  props: {
    isLoading: {
      type: Boolean,
      default: true
    },
  },
  components: {
    Loading,
  }
}
</script>

<style scoped>

</style>